package com.zofer.study.strategy.activity;

public class Price {

    private MemberStrategy memberStrategy;

    public Price(MemberStrategy memberStrategy) {
        this.memberStrategy = memberStrategy;
    }

    public double getPrice(double totalPrice){
        System.out.println("正在计算价格...");
        return this.memberStrategy.calcPrice(totalPrice);
    }
}
